/**
 * <p>
 *
 * @Author：Roy
 * @Description：楼层
 * @Date：Create by 2023-11-23 09:55:22
 */
import request from '@/utils/request'

const sceneFloor = {
  // 分页查询楼层
  queryPage(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/queryPage',
      method: 'post',
      data
    })
  },
  // 列表查询楼层
  queryList(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/queryList',
      method: 'post',
      data
    })
  },
  // 新增楼层
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/add',
      method: 'post',
      data
    })
  },
  // 获取建筑面积最大与最小值
  getAreaRange(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/getarearange',
      method: 'post',
      data
    })
  },
  // 新增楼层
  detail(id) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/detail',
      method: 'post',
      data: { id }
    })
  },
  // 编辑楼层
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/update',
      method: 'post',
      data
    })
  },
  // 删除楼层
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/deleteById',
      method: 'post',
      data
    })
  },
  // 启用禁用
  enableOrDisable(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/enableOrDisable',
      method: 'post',
      data
    })
  },
  // 批量删除楼层
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/sceneFloor/batchDelete',
      method: 'post',
      data
    })
  }
}

export default sceneFloor
